import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import Help from '@/components/help'
import Helpytb from '@/components/helpytb'
import About from '@/components/about'
import CreditCollection from '@/components/creditCollection'
import CreditBack from '@/components/creditBack'
import TradeSafe from '@/components/tradeSafe'
import TradeSafeytb from '@/components/tradeSafeytb'
import Feedback from '@/components/feedBack'
import BankList from '@/components/bankList'
import Protocol from '@/components/protocol'
import Privacy from '@/components/privacy'
import Privacyytb from '@/components/privacyytb'
import Download from '@/components/download'
import Login from '@/components/login'
import Forgetpwd from '@/components/forgetpwd'
import Register from '@/components/register'
import Credit from '@/components/credit'
import ChooseCredit from '@/components/chooseCredit'
import Trade from '@/components/trade'
import TradeDetail from '@/components/tradeDetail'
import TradeSuccess from '@/components/tradeSuccess'
import Addsavecard from '@/components/addsavecard'
import Updatesavecard from '@/components/updatesavecard'
import Addcreditcard from '@/components/addcreditcard'
import Addcreditcardnext from '@/components/addcreditcardnext'
import Share from '@/components/share'
import Shareh5 from '@/components/shareh5'
import ShareImg from '@/components/shareImg'
import Award from '@/components/award'
import Awardh5 from '@/components/awardh5'
// 我的页面
import My from '@/components/my/my'
import PersonalInfo from '@/components/my/personalInfo'
import Updatephone from '@/components/my/updatephone'
import Updateloginpwd from '@/components/my/updateloginpwd'
import Updatephonenext from '@/components/my/updatephonenext'
import TradeRecord from '@/components/my/tradeRecord'
import Choosedate from '@/components/my/choosedate'
import Mycard from '@/components/my/mycard'

// 还款流程
import BackAdv from '@/components/backmoney/backAdv'
import TradeCheck from '@/components/backmoney/tradeCheck'
import ChooseBackCredit from '@/components/backmoney/chooseBackCredit'
import ChooseBackCreditNext from '@/components/backmoney/chooseBackCreditNext'
import BackPlanDetail from '@/components/backmoney/backPlanDetail'
import BackPlanList from '@/components/backmoney/backPlanList'
import MyBackPlan from '@/components/backmoney/myBackPlan'
import BackSuccess from '@/components/backmoney/backSuccess'
import BackOrderDetail from '@/components/backmoney/backOrderDetail'


// 帮助
import Help3 from '@/components/help/help3'
import Help4 from '@/components/help/help4'
import Help5 from '@/components/help/help5'
import Help6 from '@/components/help/help6'
import Help7 from '@/components/help/help7'
import Help8 from '@/components/help/help8'
import Help10 from '@/components/help/help10'
import Help11 from '@/components/help/help11'
import Help12 from '@/components/help/help12'
import Help13 from '@/components/help/help13'

// home页面
import Home from '@/components/home/home'
import Vip from '@/components/home/vip'
import QrCode from '@/components/home/qrCode'
import AddAlipay from '@/components/home/addAlipay'
import MyAlipay from '@/components/home/myAlipay'

// 中间页  记录uv pv

import Middlepage from '@/components/middlepage'






Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      meta: {
        title: '新用户注册'
      }
    }, 
   {
      path: '/login',
      name: 'login',
      component: Login,
      meta: {
        title: '登录'
      }
    }, {
      path: '/register',
      name: 'register',
      component: Register,
      meta: {
        title: '注册'
      }
    }, {
      path: '/forgetpwd',
      name: 'forgetpwd',
      component: Forgetpwd,
      meta: {
        title: '忘记密码'
      }
    }, {
      path: '/help',
      name: 'help',
      component: Help,
      meta: {
        title: '帮助反馈'
      }
    }, {
      path: '/helpytb',
      name: 'helpytb',
      component: Helpytb,
      meta: {
        title: '帮助反馈'
      }
    }, {
      path: '/about',
      name: 'about',
      component: About,
      meta: {
        title: '关于'
      }
    }, {
      path: '/creditcollection',
      name: 'creditcollection',
      component: CreditCollection,
      meta: {
        title: '信用卡收款'
      }
    }, {
      path: '/creditback',
      name: 'creditback',
      component: CreditBack,
      meta: {
        title: '信用卡还款'
      }
    }, {
      path: '/tradesafe',
      name: 'tradesafe',
      component: TradeSafe,
      meta: {
        title: '交易安全'
      }
    },
    {
      path: '/tradesafeytb',
      name: 'tradesafeytb',
      component: TradeSafeytb,
      meta: {
        title: '交易安全'
      }
    }, {
      path: '/feedback',
      name: 'feedback',
      component: Feedback,
      meta: {
        title: '意见反馈'
      }
    }, {
      path: '/banklist',
      name: 'banklist',
      component: BankList,
      meta: {
        title: '收款支持银行及限额'
      }
    }, {
      path: '/protocol',
      name: 'protocol',
      component: Protocol,
      meta: {
        title: '用户服务协议'
      }
    }, {
      path: '/privacy',
      name: 'privacy',
      component: Privacy,
      meta: {
        title: '隐私协议'
      }
    }, {
      path: '/download',
      name: 'download',
      component: Download,
      meta: {
        title: '卡宝钱包下载'
      }
    }, {
      path: '/privacyytb',
      name: 'privacyytb',
      component: Privacyytb,
      meta: {
        title: '银土收款宝用户保护协议'
      }
    }, {
      path: '/credit',
      name: 'credit',
      component: Credit,
      meta: {
        title: '信用卡收款'
      }
    }, {
      path: '/chooseCredit',
      name: 'choosecredit',
      component: ChooseCredit,
      meta: {
        title: '选择信用卡支付'
      }
    }, {
      path: '/trade',
      name: 'trade',
      component: Trade,
      meta: {
        title: '交易验证'
      }
    }, {
      path: '/tradedetail',
      name: 'tradedetail',
      component: TradeDetail,
      meta: {
        title: '订单详情'
      }
    },{
      path: '/tradesuccess',
      name: 'tradesuccess',
      component: TradeSuccess,
      meta: {
        title: '订单详情'
      }
    }, {
      path: '/addsavecard',
      name: 'addsavecard',
      component: Addsavecard,
      meta: {
        title: '添加到账储蓄卡'
      }
    }, {
      path: '/updatesavecard',
      name: 'updatesavecard',
      component: Updatesavecard,
      meta: {
        title: '修改到账储蓄卡'
      }
    }, {
      path: '/addcreditcard',
      name: 'addcreditcard',
      component: Addcreditcard,
      meta: {
        title: '添加支付信用卡'
      }
    }, {
      path: '/addcreditcardnext',
      name: 'addcreditcardnext',
      component: Addcreditcardnext,
      meta: {
        title: '添加支付信用卡'
      }
    }, {
      path: '/share',
      name: 'share',
      component: Share,
      meta: {
        title: '分享邀新'
      }
    }, {
      path: '/shareh5',
      name: 'shareh5',
      component: Shareh5,
      meta: {
        title: '分享邀新'
      }
    },
    {
      path: '/shareImg',
      name: 'shareImg',
      component: ShareImg,
      meta: {
        title: '分享邀新'
      }
    },
    {
      path: '/award',
      name: 'award',
      component: Award,
      meta: {
        title: '任务奖励'
      }
    },
    {
      path: '/awardh5',
      name: 'awardh5',
      component: Awardh5,
      meta: {
        title: '任务奖励'
      }
    },
    {
      path: '/my/my',
      name: 'my',
      component: My,
      meta: {
        title: '我的'
      }
    }, {
      path: '/my/personalInfo',
      name: 'personalInfo',
      component: PersonalInfo,
      meta: {
        title: '个人资料'
      }
    }, {
      path: '/my/updatephone',
      name: 'updatephone',
      component: Updatephone,
      meta: {
        title: '修改登录手机号'
      }
    }, {
        path: '/my/updateloginpwd',
        name: 'updateloginpwd',
        component: Updateloginpwd,
        meta: {
          title: '修改登录密码'
        }
      },{
      path: '/my/updatephonenext',
      name: 'updatephonenext',
      component: Updatephonenext,
      meta: {
        title: '新手机号'
      }
    }, {
      path: '/my/traderecord',
      name: 'traderecord',
      component: TradeRecord,
      meta: {
        title: '交易记录'
      }
    },
    {
      path: '/my/choosedate',
      name: 'choosedate',
      component: Choosedate,
      meta: {
        title: '筛选'
      }
    }, {
      path: '/my/mycard',
      name: 'mycard',
      component: Mycard,
      meta: {
        title: '我的银行卡'
      }
    }, {
      path: '/help/help3',
      name: 'help3',
      component: Help3,
      meta: {
        title: '重磅消息！苹果推出信用卡了'
      }
    }, {
      path: '/help/help4',
      name: 'help4',
      component: Help4,
      meta: {
        title: '净网2019 警惕秒杀式信用卡盗刷'
      }
    }, {
      path: '/help/help5',
      name: 'help5',
      component: Help5,
      meta: {
        title: '信用卡欠费太多，无力偿还？3点教你如何自救！'
      }
    }, {
      path: '/help/help6',
      name: 'help6',
      component: Help6,
      meta: {
        title: '朋友办理信用卡，紧急联系人填了你的电话，逾期后你有什么后果？'
      }
    }, {
      path: '/help/help7',
      name: 'help7',
      component: Help7,
      meta: {
        title: '你的信用，值多少钱？'
      }
    }, {
      path: '/help/help8',
      name: 'help8',
      component: Help8,
      meta: {
        title: '对于信用卡提额已经没有作用的3个方法，使用不当反而会被降额！'
      }
    }, {
      path: '/help/help10',
      name: 'help10',
      component: Help10,
      meta: {
        title: '迈向银行4.0：从开放银行到平台银行！'
      }
    }, {
      path: '/help/help11',
      name: 'help11',
      component: Help11,
      meta: {
        title: '福利！手机银行跨行转账这种方法最划算！'
      }
    }, {
      path: '/help/help12',
      name: 'help12',
      component: Help12,
      meta: {
        title: '信用卡提额怎么提'
      }
    }, {
      path: '/help/help13',
      name: 'help13',
      component: Help13,
      meta: {
        title: '科技能力再获认可，51信用卡与中原银行战略合作 51信用卡携手中原银行，共同打造数字金融服务'
      }
    }, {
      path: '/backAdv',
      name: 'backAdv',
      component: BackAdv,
      meta: {
        title: '信用卡余额还卡'
      }
    },{
      path: '/choosebackcredit',
      name: 'choosebackcredit',
      component: ChooseBackCredit,
      meta: {
        title: '信用卡余额还卡'
      }
    },
     {
      path: '/choosebackcreditnext',
      name: 'choosebackcreditnext',
      component: ChooseBackCreditNext,
      meta: {
        title: '信用卡余额还卡'
      }
    },
    {
      path: '/backplandetail',
      name: 'backplandetail',
      component: BackPlanDetail,
      meta: {
        title: '还款计划详情'
      }
    },
    {
      path: '/backplanlist',
      name: 'backplanlist',
      component: BackPlanList,
      meta: {
        title: '还款计划明细'
      }
    },{
      path: '/mybackplan',
      name: 'mybackplan',
      component: MyBackPlan,
      meta: {
        title: '还款计划'
      }
    },{
      path: '/tradecheck',
      name: 'tradecheck',
      component: TradeCheck,
      meta: {
        title: '交易验证'
      }
    },
    {
      path: '/middlepage',
      name: 'middlepage',
      component: Middlepage,
    },
    {
      path: '/backsuccess',
      name: 'backsuccess',
      component: BackSuccess
    },
    {
      path: '/backorderdetail',
      name: 'backorderdetail',
      component: BackOrderDetail,
      meta: {
        title: '还卡计划详情'
      }
    },
    //主页
    {
      path: '/home',
      name: 'home',
      component: Home,
      meta: {
        title: '首页'
      }
    }, 
    {
      path: '/vip',
      name: 'vip',
      component: Vip,
      meta: {
        title: 'VIP会员'
      }
    }, 
    {
      path: '/qrcode',
      name: 'qrcode',
      component: QrCode,
      meta: {
        title: '二维码收款'
      }
    }, 
    {
      path: '/addalipay',
      name: 'addalipay',
      component: AddAlipay,
      meta: {
        title: '添加支付宝'
      }
    },  {
      path: '/myalipay',
      name: 'myalipay',
      component: MyAlipay,
      meta: {
        title: '我的支付宝'
      }
    }, 
    
  ]
})
